<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../common/css/insert.css">
<title>UserDelete</title>
</head>
<body>
	<div id="searchInfo">
		<form id="searchBook" method="post" action="">
			<div class="form-group">
				<label>按ID删除：</label> <input class="form-control" id="idDelete"
					type="text" name="user_id" placeholder="输入用户ID">
			</div>

			<input class="btn btn-primary" type="button" value="删除"
				onclick="search()"> <input class="btn btn-danger"
				type="reset" value="重置">
		</form>
	</div>
	<div id="searchResults">
	</div>
	
	
	<script>
	function search(){
		var userid = $('#idDelete').val();
	
		var jo = {
			"userid":userid,
		};
		
		
		$(document).ready(function() {
			$.ajax({
				type : "post",
				url : "../searchBook.action",
				dataType : "json",
				data : jo,
				success : function(data,textStatus) {
					alert("删除成功");

				}
			});
		)};
	}
	</script>
</body>
</html>